package com.intellagric.service.traceability.trace_produce;

import com.intellagric.common.pojo.LayuiDataGridResult;
import com.intellagric.common.pojo.ResponseMessage;
import com.intellagric.pojo.TraceProduce;
import com.intellagric.pojo.TraceProduceCategory;

/**
 * @Author: zhy
 * @email: 1269679946@qq.com
 * @Date: 2018/10/31
 * @DESC： 溯源农产品分类分类管理服务
 */
public interface ProduceCategoryService {

    //增加农产品分类信息
    ResponseMessage addProduceCategory(TraceProduceCategory produceCategory);

    //删除农产品分类信息
    ResponseMessage deleteProduceCategory(String id);

    //修改农产品分类信息
    ResponseMessage editProduceCategory(TraceProduceCategory produceCategory);

    //查询农产品分类信息
    TraceProduceCategory getProduceCategoryById(String id);
    LayuiDataGridResult getProduceCategoryByParentId(String parentId);
    LayuiDataGridResult getProduceCategoryList();
    LayuiDataGridResult getProduceCategoryTree();
    LayuiDataGridResult getProduceCategoryTree(String createBy);
}
